package com.cxx.purchasecharge.dal;

import org.springframework.data.jpa.repository.Query;
import org.springframework.transaction.annotation.Transactional;

import com.cxx.purchasecharge.core.model.persistence.CustomerScale;
import com.cxx.purchasecharge.dal.common.GenericCRUDDao;

@Transactional
public interface CustomerScaleDao extends GenericCRUDDao <CustomerScale, Long>
{

    public CustomerScale findById (long id);

    @Query (value = "select c from CustomerScale c where c.name=?1")
    public CustomerScale findByName (String name);

}
